﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Infrastructure.AggregateBase
{
    public abstract class IEntity
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public virtual DateTime CT { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("UpdateTime")]
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public virtual DateTime UT { get; set; }
    }
}
